Skip to content

London | 26-ITP-Sep | Mandip Sanger | Sprint 3 | Implement-and-rewrire-tests - #1612

Open
mandipsanger wants to merge 9 commits into
CodeYourFuture:mainfrom
mandipsanger:sprint-3/implement-and-rewrite-tests
Open

London | 26-ITP-Sep | Mandip Sanger | Sprint 3 | Implement-and-rewrire-tests#1612
mandipsanger wants to merge 9 commits into
CodeYourFuture:mainfrom
mandipsanger:sprint-3/implement-and-rewrite-tests

Conversation

@mandipsanger

Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Task code

CYF-1059

Changelist

Sprint 3 coursework

@github-actions

This comment has been minimized.

@mandipsanger mandipsanger changed the title London | 26-ITP-Sep | Mandip Sanger | Sprint 3/implement and rewrite tests London | 26-ITP-Sep | Mandip Sanger | Sprint3 | Implement-and-rewrire-tests Sep 8, 2026
@github-actions

This comment has been minimized.

@mandipsanger mandipsanger changed the title London | 26-ITP-Sep | Mandip Sanger | Sprint3 | Implement-and-rewrire-tests London | 26-ITP-Sep | Mandip Sanger | Sprint 3 | Implement-and-rewrire-tests Sep 8, 2026
@mandipsanger mandipsanger added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 8, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Sep 14, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there, just a couple of small comments to fix

});

test("should return false when both numerator and denominator are negative", () => {
expect(isProperFraction(-4, -5)).toEqual(false);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this isn't quite right. I maths, a fraction is proper when the value of the numerator, ignoring the ± sign, is smaller than the fraction. So in this case, -4/-5 is true.

}

if (
rank === "2" ||

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems pretty complex, is there a way you could simplify checking these numbers?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants